package com.ruoyi.ebike.mapper;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.ebike.vo.DeptVO;
import com.ruoyi.ebike.domain.Vehicle;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeployMapper {


        int addSingleVehicle(Vehicle vehicle);

        List<SysDept> fetchDeptlist(Long deptId);

        // 批量插入车辆
        int addBatchVehicles(@Param("vehicles") List<Vehicle> vehicles);

        int updateBatchVehicles(@Param("vehicles") List<Vehicle> vehicles);

        int updateDeployStatus(List<Vehicle> vehicles);
}
